package business

import (
	"github.com/gin-gonic/gin"
	api "ruoyi-go/app/admin/services"
	"ruoyi-go/utils/jwt"
)

func InitEdgeCarLicensePlate(e *gin.Engine) {
	// 路由权限相关
	v2 := e.Group("business")
	{
		auth := v2.Group("")
		auth.Use(jwt.JWTAuthMiddleware())
		{
			// 查询
			auth.GET("/edgeCarLicensePlate/list", api.GetPageLimitEdgeCarLicensePlateService)
			// 添加
			auth.POST("/edgeCarLicensePlate/insert", api.EdgeCarLicensePlateSave)
			// 修改
			auth.POST("/edgeCarLicensePlate/update", api.EdgeCarLicensePlateUpdate)
			// 删除
			auth.DELETE("/edgeCarLicensePlate/:ids", api.EdgeCarLicensePlateDeleteByIds)
			// 获取详情
			auth.GET("/edgeCarLicensePlate/:id", api.EdgeCarLicensePlateLoadById)
		}
	}
} 